package com.viphuli.common;

import android.support.v4.app.Fragment;

import com.viphuli.app.R;
import com.viphuli.fragment.AccountFragment;
import com.viphuli.fragment.HomeFragment;
import com.viphuli.fragment.PurchaseOrderFragment;

/**
 * 主界面标签
 * 
 * @author li.li
 *
 */
public enum MainTabEnum {
	home(0, MyApp.getInstance().getString(R.string.str_main_tab_name_home), R.drawable.sl_main_bottom_tab_home, HomeFragment.class), //
	order(1, MyApp.getInstance().getString(R.string.str_main_tab_name_purchase), R.drawable.sl_main_bottom_tab_purchase, PurchaseOrderFragment.class), //
//	question(2, MyApp.getInstance().getString(R.string.str_main_tab_name_question), R.drawable.sl_main_bottom_tab_question, QuestionFragment.class), //
	my(3, MyApp.getInstance().getString(R.string.str_main_tab_name_my), R.drawable.sl_main_bottom_tab_my, AccountFragment.class), //

	;

	private MainTabEnum(int index, String name, int icon, Class<? extends Fragment> frag) {
		this.index = index;
		this.name = name;
		this.icon = icon;
		this.frag = frag;
	}

	/** 索引 */
	private int index;
	/** 选修卡文字 */
	private String name;
	/** 选修卡图标 */
	private int icon;
	/** 选修卡展示类 */
	private Class<? extends Fragment> frag;

	public int getIndex() {
		return index;
	}

	public String getName() {
		return name;
	}

	public int getIcon() {
		return icon;
	}

	public Class<? extends Fragment> getFrag() {
		return frag;
	}

}
